package com.sicau.smart_farmer.repository;

import com.sicau.smart_farmer.entity.TrainingBatch;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @author sxt
 * @create 2019-11-22 16:40
 */
public interface TrainingBatchRepository extends MongoRepository<TrainingBatch, String> {

    /**
     * 通过id查询相应的培训批次
     * @param id
     * @return
     */
    TrainingBatch findTrainingBatchById(String id);
}
